package com.mhs.dataclassification.processA;

import java.util.List;

import com.mhs.dataclassification.Temp;

public class ProcessAi {
	public static double calculate_Ai(double ak, double ai){
		double Ai = 0;
		if(ak != 0){
			Ai = ai/ak;
		}else{
			Ai = 0;
		}
		return Ai;
	}

	public static double calculate_Ak(List<Temp> lstTemp) {
		double ak = 0;
		for(int i = 0;i < lstTemp.size(); i++){
			ak += lstTemp.get(i).getAi();
		}
		return ak;
	}
}
